<template>
    <router-link class="sItem" :to="msg.href" tag="div">
      <div class="sBox">
        <div class="sTitle">
            {{msg.title}}
        </div>
        <div class="sTime">
            {{msg.create_time}}
        </div>
      </div>
      <div class="sImg" :style="{'background-image': `url(${Port + msg.img})`}"></div>
    </router-link>
</template>
<script>
import { Get, Post, Port } from "../../../server/ajax"
export default {
  props: ["msg"],
  data () {
    return {
      Port: Port
    }
  },
  mounted() {}
};
</script>
<style scoped>
.sItem {
  position: relative;
  padding: 0.42rem 0;
  height: 2.22rem;
  border-bottom: 0.01rem solid #e6e6e6;
}
.sBox {
  /* position: absolute; */
  top: 0.57rem;
  left: 2.84rem;
  display: inline-block;
  width: 4.2rem;
  font-size: 0.32rem;
  color: #333;
}
.sImg {
  float: right;
  width: 2.1rem;
  height: 1.4rem;
  padding: 0 0.29rem 0 0.45rem;
  background-size: cover;
  background-position: center center;
}
.sTitle {
  margin-bottom: 0.47rem;
  font-weight: bold;
  width: 4.54rem;
}
.sTime{
  font-size: 0.24rem;
  color: #ccc;
}
</style>